<?php
/**
 * Created by PhpStorm.
 * User: HuangLuSen
 * Date: 2017/12/19
 * Time: 22:46
 */

namespace app\admin\logic;

class Sms
{
    use \app\common\traits\Sms;
    public static function sendsms($sendphone,$template,$smsdata){
        $easySms=self::getSmsInstance();
        $easySms->send($sendphone, [
            'template' => $template,
            'data' => $smsdata,
        ], ['aliyun']); // 这里的网关配置将会覆盖全局默认值
    }
}